-- GENERATED SPELL FOR [Bro'Gaz the Clanless] --


function spell0_18684(pUnit, Event) --@Flamestrike,n/a--
pUnit:FullCastSpellOnTarget(12468,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18684', 11000, 1)
end

function spell1_18684(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(15586,pUnit)
pUnit:RegisterEvent('Sorts_18684', 3500, 1)
end

function spell2_18684(pUnit, Event) --@Pummel,n/a--
pUnit:FullCastSpellOnTarget(38313,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18684', 5285, 1)
end

function Sorts_18684(pUnit, Event)
local choix_sorts_18684 = math.random(0, 2)
if choix_sorts_18684 == 0 then
pUnit:RegisterEvent('spell0_18684', 1, 1)
end
if choix_sorts_18684 == 1 then
pUnit:RegisterEvent('spell1_18684', 1, 1)
end
if choix_sorts_18684 == 2 then
pUnit:RegisterEvent('spell2_18684', 1, 1)
end
end

function mob18684_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18684', math.random(1500, 3000), 1)
end

function mob18684_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18684_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18684_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18684, 1, 'mob18684_Action')
RegisterUnitEvent(18684, 2, 'mob18684_Leave')
RegisterUnitEvent(18684, 3, 'mob18684_Kill')
RegisterUnitEvent(18684, 4, 'mob18684_Die')
